package com.td.module.system.controller.admin.growth.vo.list;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 生长模型列 Excel VO
 *
 * @author wangxx
 */
@Data
public class GrowthModuleListExcelVO {

    @ExcelProperty("模型编码")
    private Long id;

    @ExcelProperty("模型排序")
    private Integer sort;

    @ExcelProperty("模型标签")
    private String label;

    @ExcelProperty("模型键值")
    private String value;

    @ExcelProperty(value = "种植标准", converter = DictConvert.class)
    @DictFormat("planting_standard_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer plantingStandardType;

    @ExcelProperty(value = "种植环境", converter = DictConvert.class)
    @DictFormat("planting_environment_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer plantingEnvironmentType;

    @ExcelProperty("模型类型")
    private String growthType;

    @ExcelProperty(value = "状态（0正常 1停用）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Byte status;

    @ExcelProperty("颜色类型")
    private String colorType;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
